import Layout from '@/layout'

const kaowuRouter = {
  path: '/kaowu',
  component: Layout,
  redirect: 'noRedirect',
  alwaysShow: true,
  name: 'kaowu',
  meta: { title: '考务', icon: 'example', access: 'kaowu' },
  children: [
    // {
    //   path: '/kaowu/article',
    //   name: 'article',
    //   component: () => import('@/views/kaowu/article'),
    //   redirect: 'noRedirect',
    //   alwaysShow: true,
    //   meta: { title: '资讯管理', access: 'article' },
    //   children: [
    //     {
    //       path: '/kaowu/article/list',
    //       name: 'articleList',
    //       component: () => import('@/views/kaowu/article/list'),
    //       meta: { title: '资讯列表', access: 'articleList' }
    //     },
    //     {
    //       path: '/kaowu/article/list/add',
    //       name: 'articleAdd',
    //       component: () => import('@/views/kaowu/article/list/add'),
    //       meta: { title: '添加资讯', access: 'articleList', activeMenu: '/kaowu/article/list' },
    //       hidden: true
    //     },
    //     {
    //       path: '/kaowu/article/list/edit',
    //       name: 'articleEdit',
    //       component: () => import('@/views/kaowu/article/list/edit'),
    //       meta: { title: '编辑资讯', access: 'articleList', activeMenu: '/kaowu/article/list' },
    //       hidden: true
    //     },
    //     {
    //       path: '/kaowu/article/category',
    //       name: 'articleCategory',
    //       component: () => import('@/views/kaowu/article/category'),
    //       meta: { title: '资讯分类', access: 'articleCategory' }
    //     },
    //     {
    //       path: '/kaowu/article/category/add',
    //       name: 'articleCategoryAdd',
    //       component: () => import('@/views/kaowu/article/category/add'),
    //       meta: { title: '添加分类', access: 'articleCategory', activeMenu: '/kaowu/article/category' },
    //       hidden: true
    //     },
    //     {
    //       path: '/kaowu/article/category/edit',
    //       name: 'articleCategoryEdit',
    //       component: () => import('@/views/kaowu/article/category/edit'),
    //       meta: { title: '编辑分类', access: 'articleCategory', activeMenu: '/kaowu/article/category' },
    //       hidden: true
    //     }
    //   ]
    // },
    {
      path: '/kaowu/kaowu',
      name: 'kaowu',
      component: () => import('@/views/kaowu/kaowu'),
      redirect: 'noRedirect',
      alwaysShow: true,
      meta: { title: '考务管理', access: 'kaowu' },
      children: [
        {
          path: '/kaowu/exam/examuser',
          name: 'examinfo',
          component: () => import('@/views/kaowu/kaowu/examuser'),
          meta: { title: '报名信息', access: 'kaowu', activeMenu: '/kaowu/kaowu/examuser' },
        },
        {
          path: '/kaowu/exam/examinfo',
          name: 'examinfo',
          component: () => import('@/views/kaowu/kaowu/examinfo'),
          meta: { title: '考试信息', access: 'kaowu', activeMenu: '/kaowu/kaowu/examuser' },
        },
        {
          path: '/kaowu/exam/kaochanginfo',
          name: 'examinfo',
          component: () => import('@/views/kaowu/kaowu/kaochanginfo'),
          meta: { title: '考场信息', access: 'kaowu', activeMenu: '/kaowu/kaowu/examuser' },
        },
        {
          path: '/kaowu/exam/kaoshenginfo',
          name: 'kaoshenginfo',
          component: () => import('@/views/kaowu/kaowu/kaoshenginfo'),
          meta: { title: '考生信息', access: 'kaowu', activeMenu: '/kaowu/kaowu/examuser' },
        },
        {
          path: '/kaowu/order',
          name: 'orderList',
          component: () =>import ('@/views/kaowu/order/index.vue'),
          meta: {
            title: '订单管理',
            access: 'orderList'
          }
        }

      ]
    },
    {
      path: '/kaowu/unit',
      name: 'unit',
      component: () => import('@/views/kaowu/unit'),
      redirect: 'noRedirect',
      alwaysShow: true,
      meta: { title: '单位管理', access: 'unit' },
      children: [
        {
          path: '/kaowu/unit/unit',
          name: 'unitList',
          component: () => import('@/views/kaowu/unit/unit'),
          meta: { title: '单位列表', access: 'unitList' }
        },
        {
          path: '/kaowu/unit/unit/add',
          name: 'unitAdd',
          component: () => import('@/views/kaowu/unit/unit/add'),
          meta: { title: '添加单位', access: 'unitList', activeMenu: '/kaowu/unit/unit' },
          hidden: true
        },
        {
          path: '/kaowu/unit/unit/edit',
          name: 'unitEdit',
          component: () => import('@/views/kaowu/unit/unit/edit'),
          meta: { title: '编辑单位', access: 'unitList', activeMenu: '/kaowu/unit/unit' },
          hidden: true
        },
        {
          path: '/kaowu/unit/career',
          name: 'careerList',
          component: () => import('@/views/kaowu/unit/career'),
          meta: { title: '岗位列表', access: 'careerList' }
        },
        {
          path: '/kaowu/unit/career/add',
          name: 'careerAdd',
          component: () => import('@/views/kaowu/unit/career/add'),
          meta: { title: '添加岗位', access: 'careerList', activeMenu: '/kaowu/unit/career' },
          hidden: true
        },
        {
          path: '/kaowu/unit/career/edit',
          name: 'careerEdit',
          component: () => import('@/views/kaowu/unit/career/edit'),
          meta: { title: '编辑岗位', access: 'careerList', activeMenu: '/kaowu/unit/career' },
          hidden: true
        }
      ]
    },
    {
      path: '/kaowu/exam',
      name: 'exam',
      component: () => import('@/views/kaowu/exam'),
      redirect: 'noRedirect',
      alwaysShow: true,
      meta: { title: '考试管理', access: 'exam' },
      children: [
        {
          path: '/kaowu/exam/list',
          name: 'examList',
          component: () => import('@/views/kaowu/exam/list'),
          meta: { title: '考试列表', access: 'examList' }
        },
        {
          path: '/kaowu/exam/list/add',
          name: 'examAdd',
          component: () => import('@/views/kaowu/exam/list/add'),
          meta: { title: '添加考试', access: 'examList', activeMenu: '/kaowu/exam/list' },
          hidden: true
        },
        {
          path: '/kaowu/exam/list/edit',
          name: 'examEdit',
          component: () => import('@/views/kaowu/exam/list/edit'),
          meta: { title: '编辑考试', access: 'examList', activeMenu: '/kaowu/exam/list' },
          hidden: true
        }
      ]
    },
    {
      path: '/kaowu/point',
      name: 'point',
      component: () => import('@/views/kaowu/point'),
      redirect: 'noRedirect',
      alwaysShow: true,
      meta: { title: '考点管理', access: 'point' },
      children: [
        {
          path: '/kaowu/point/point',
          name: 'pointList',
          component: () => import('@/views/kaowu/point/point'),
          meta: { title: '考点列表', access: 'pointList' }
        },
        {
          path: '/kaowu/point/point/add',
          name: 'pointAdd',
          component: () => import('@/views/kaowu/point/point/add'),
          meta: { title: '添加考点', access: 'pointList', activeMenu: '/kaowu/point/point' },
          hidden: true
        },
        {
          path: '/kaowu/point/point/edit',
          name: 'pointEdit',
          component: () => import('@/views/kaowu/point/point/edit'),
          meta: { title: '编辑考点', access: 'pointList', activeMenu: '/kaowu/point/point' },
          hidden: true
        },
      ]
    },
    {
      path: '/kaowu/room',
      name: 'room',
      component: () => import('@/views/kaowu/room'),
      redirect: 'noRedirect',
      alwaysShow: true,
      meta: { title: '考场管理', access: 'room' },
      children: [
        {
          path: '/kaowu/room/room',
          name: 'roomList',
          component: () => import('@/views/kaowu/room/room'),
          meta: { title: '考场列表', access: 'room' }
        },
        {
          path: '/kaowu/room/room/add',
          name: 'roomAdd',
          component: () => import('@/views/kaowu/room/room/add'),
          meta: { title: '添加考场', access: 'room', activeMenu: '/kaowu/room/room' },
          hidden: true
        },
        {
          path: '/kaowu/room/room/edit',
          name: 'roomEdit',
          component: () => import('@/views/kaowu/room/room/edit'),
          meta: { title: '编辑考场', access: 'room', activeMenu: '/kaowu/room/room' },
          hidden: true
        }
      ]
    },
    {
      path: '/kaowu/topic',
      name: 'topic',
      component: () => import('@/views/kaowu/topic'),
      redirect: 'noRedirect',
      alwaysShow: true,
      meta: { title: '科目管理', access: 'topic' },
      children: [
        {
          path: '/kaowu/topic/topic',
          name: 'topicList',
          component: () => import('@/views/kaowu/topic/topic'),
          meta: { title: '科目列表', access: 'topic' }
        },
        {
          path: '/kaowu/topic/topic/add',
          name: 'topicAdd',
          component: () => import('@/views/kaowu/topic/topic/add'),
          meta: { title: '添加科目', access: 'topic', activeMenu: '/kaowu/topic/topic' },
          hidden: true
        },
        {
          path: '/kaowu/topic/topic/edit',
          name: 'topicEdit',
          component: () => import('@/views/kaowu/topic/topic/edit'),
          meta: { title: '编辑科目', access: 'topic', activeMenu: '/kaowu/topic/topic' },
          hidden: true
        }
      ]
    }
    // ,
    // {
    //   path: '/kaowu/order',
    //   name: 'orderList',
    //   component: () =>import ('@/views/kaowu/order/index.vue'),
    //   meta: {
    //     title: '订单管理',
    //     access: 'orderList'
    //   }
    // }
  ]
}
export default kaowuRouter
